package com.youhome.service.service;

import com.github.pagehelper.PageInfo;
import com.youhome.common.exception.CustomException;
import com.youhome.service.model.BShareGroupHouse;
import com.youhome.service.model.ListHub;

import java.util.List;

/**
 * Created by chen365 on 2018/05/14.
 */
public interface BShareGroupHouseService {
    PageInfo<ListHub> selectHouseByShareId(Integer pageIndex, Integer pageSize, String shareId);

    List<ListHub> selectHouseByShareId(String shareId);

    int deleteByPrimaryKey(Long id);

    int insert(BShareGroupHouse bShareGroupHouse);

    PageInfo<BShareGroupHouse> selectByBean(Integer pageNumber, Integer pageSize, BShareGroupHouse record);

    PageInfo<BShareGroupHouse> selectByBean(String phone, String shareId, Integer pageNumber, Integer pageSize) throws CustomException;

    void insert(String phone, String shareId, String houseId) throws CustomException;

    void delete(String phone, String shareId, Long id) throws CustomException;
}
